﻿using System.Collections.Generic;
using GalaSoft.MvvmLight;

namespace Mutzl.Samples.MapApp.Model
{
    // Todo 05: weitere Modelklasse(n) für weitere Layer
    public class SonderObjekt : ObservableObject
    {
        private string _id;
        public string Id
        {
            get { return _id; }
            set
            {
                if (_id == value) return;
                _id = value;
                RaisePropertyChanged(() => Id);
            }
        }

        private string _image;
        public string Image
        {
            get { return _image; }
            set
            {
                if (_image == value) return;
                _image = value;
                RaisePropertyChanged(() => Image);
            }
        }

        private double _latitude;
        public double Latitude
        {
            get { return _latitude; }
            set
            {
                if (_latitude == value) return;
                _latitude = value;
                RaisePropertyChanged(() => Latitude);
            }
        }

        private double _longitude;
        public double Longitude
        {
            get { return _longitude; }
            set
            {
                if (_longitude == value) return;
                _longitude = value;
                RaisePropertyChanged(() => Longitude);
            }
        }

        private string _name;
        public string Name
        {
            get { return _name; }
            set
            {
                if (_name == value) return;
                _name = value;
                RaisePropertyChanged(() => Name);
            }
        }

        

        public static IEnumerable<SonderObjekt> GetData()
        {

            yield return new SonderObjekt
                             {
                                 Id = "GBP",
                                 Name = "Großbetriebsprüfung",
                                 Latitude = 48.208874,
                                 Longitude = 16.384885,
                                 Image = "http://dienststellen.bmf.gv.at/dst/img/resize260adr/1030_vordere_zollamtsstrasse_5.jpg",
                             };

            yield return new SonderObjekt
                             {
                                 Id = "PK",
                                 Name = "Finanz Prokuratur",
                                 Latitude = 48.206757,
                                 Longitude = 16.37516,
                                 Image = "http://finanzprokuratur.bmf.gv.at/resources/img/sitestd/start/fprok_logo.jpg",
                             };

            yield return new SonderObjekt
                             {
                                 Id = "UFS",
                                 Name = "Unabhängiger Finanzsenat",
                                 Latitude = 48.208382,
                                 Longitude = 16.38446,
                                 Image = "http://ufs.bmf.gv.at/bilder/UFSWien.jpg",
                             };

        }

    }
}
